#include "Consumer.h"
#include "TaskQueue.h"
#include <iostream>
#include <thread>

using namespace std;

void Consumer::consume(TaskQueue & taskQue){
    int cnt = 20;
    while(cnt --){
        int num = taskQue.pop();
        cout << "Consume num : " << num << endl;
        this_thread::sleep_for(chrono::seconds(1));
    }
}

